package com.um.springcloud.dubbo.cluster;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author 甘天伟
 * @since 2024/1/25
 * 版权所有 广州优匠科技有限公司
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "hsh.device-cluster")
public class DeviceClusterProperties {
    /**
     * 是否启用调用拦截器
     */
    private boolean interceptor = false;
    /**
     * 持久化类型：none/redis/jdbc
     */
    private String persistence = "none";
    /**
     * redis前缀
     */
    private String redisPrefix = "deviceCluster:";
    /**
     * jdbc表名
     */
    private String jdbcTableName = "device";
    /**
     * jdbc设备码字段
     */
    private String jdbcKeyColumn = "key";
    /**
     * jdbc服务端点字段
     */
    private String jdbcEndpointColumn = "endpoint";
}
